﻿<Page
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
      xmlns:controls="clr-namespace:VMDS.GUIClient.Views"

      xmlns:VMDS_GUIClient_ViewModels="clr-namespace:VMDS.GUIClient.ViewModels" x:Class="VMDS.GUIClient.Views.ManagementConsole"

      mc:Ignorable="d" 
      d:DesignHeight="496" d:DesignWidth="954"
	Title="ManagementConsole" Width="Auto" Loaded="Page_Loaded">
	<Page.Resources>
		<ResourceDictionary>
			<ResourceDictionary.MergedDictionaries>
				<ResourceDictionary Source="ResourceDictionary1.xaml"/>
			</ResourceDictionary.MergedDictionaries>
		</ResourceDictionary>
	</Page.Resources>
	<Page.DataContext>
		<VMDS_GUIClient_ViewModels:ManagementConsoleViewModel/>
	</Page.DataContext>

    <Grid x:Name="rootGrid">
    	<Grid.ColumnDefinitions>
    		<ColumnDefinition Width="0.225*"/>
    		<ColumnDefinition Width="0.775*"/>
    	</Grid.ColumnDefinitions>

        <Rectangle Margin="5" Stroke="#FFF8F3F3" StrokeThickness="0.5" RadiusX="10" RadiusY="10">
        	<Rectangle.Fill>
        		<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0" Opacity="0.435">
        			<LinearGradientBrush.RelativeTransform>
        				<TransformGroup>
        					<ScaleTransform CenterY="0.5" CenterX="0.5"/>
        					<SkewTransform CenterY="0.5" CenterX="0.5"/>
        					<RotateTransform CenterY="0.5" CenterX="0.5"/>
        					<TranslateTransform/>
        				</TransformGroup>
        			</LinearGradientBrush.RelativeTransform>
        			<GradientStop Color="#FFEFECEC"/>
        			<GradientStop Offset="0.558"/>
        			<GradientStop Color="#FFEFECEC" Offset="1"/>
        			<GradientStop Offset="0.494"/>
        		</LinearGradientBrush>
        	</Rectangle.Fill>
        </Rectangle>

        <StackPanel Margin="8" VerticalAlignment="Center">
    		<Button Margin="20,10,20,0" Style="{DynamicResource GreenButton}" Height="57.5" FontFamily="Segoe UI" Command="{Binding GoToStorage, Mode=OneWay}">
    			<TextBlock TextWrapping="Wrap" Text="Хранилища" FontSize="18.667" TextAlignment="Center"/>
    		</Button>
    		<Button Margin="20,10,20,0" Style="{DynamicResource GreenButton}" Height="57.5" FontFamily="Segoe UI" Command="{Binding GoToOs, Mode=OneWay}">
    			<TextBlock TextWrapping="Wrap" FontSize="18.667" TextAlignment="Center" Text="Операционные системы"/>
    		</Button>
    		<Button Margin="20,10,20,0" Style="{DynamicResource GreenButton}" Height="57.5" FontFamily="Segoe UI" Command="{Binding GoToVm, Mode=OneWay}">
    			<TextBlock TextWrapping="Wrap" Text="Виртуальные машины" FontSize="18.667" TextAlignment="Center"/>
    		</Button>
    		<Button Margin="20,10,20,0" Style="{DynamicResource GreenButton}" Height="57.5" FontFamily="Segoe UI" Command="{Binding GoToClients, Mode=OneWay}">
    			<TextBlock TextWrapping="Wrap" Text="Целевые компьютеры" FontSize="18.667" TextAlignment="Center"/>
    		</Button>
    		<Button Margin="20,10,20,0" Style="{DynamicResource GreenButton}" Height="57.5" FontFamily="Segoe UI" Command="{Binding GoToTask, Mode=OneWay}">
    			<TextBlock TextWrapping="Wrap" Text="Управление заданиями" FontSize="18.667" TextAlignment="Center"/>
    		</Button>
    		<Button Margin="20,10,20,0" Style="{DynamicResource GreenButton}" Height="57.5" FontFamily="Segoe UI" Command="{Binding GoToTask, Mode=OneWay}">
    			<TextBlock TextWrapping="Wrap" Text="Учебные дисциплины" FontSize="18.667" TextAlignment="Center"/>
    		</Button>
    	</StackPanel>
    	<Frame Content="" Grid.Column="1" Margin="0" NavigationUIVisibility="Hidden" Source="{Binding NavigationLink}" BorderThickness="2,0,0,0"/>
        <controls:MyModalDialog x:Name="ModalDialog" Grid.ColumnSpan="2" Visibility="Hidden" >
        	<controls:MyModalDialog.DataContext>
        		<VMDS_GUIClient_ViewModels:ConnectionDialog/>
        	</controls:MyModalDialog.DataContext>
        </controls:MyModalDialog>
    </Grid>
</Page>
